package com.qdxwx.models.advert;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * banner图管理

 */

public class Advert implements Serializable{

    private static final long serialVersionUID = -952982124019789625L;

    private int id;
    private Integer channelId;//频道id
    private int typeId;//类别id
    private String title;//图标题
    private String imageUrl;//图片地址
    private String linkUrl;//连接地址
    private String intro;//描述
    private int sort;//排序
    private String color;//背景色
    private Integer isDisabled;//禁用
    private LocalDateTime updateTime;

    public Advert() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getIsDisabled() {
        return isDisabled;
    }

    public void setIsDisabled(Integer isDisabled) {
        this.isDisabled = isDisabled;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Advert{" +
                "id=" + id +
                ", channelId=" + channelId +
                ", typeId=" + typeId +
                ", title='" + title + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", linkUrl='" + linkUrl + '\'' +
                ", intro='" + intro + '\'' +
                ", sort=" + sort +
                ", color='" + color + '\'' +
                ", isDisabled=" + isDisabled +
                '}';
    }
}
